package com.data.capture.constant;

import lombok.Getter;

/**
 * 数据变更类型枚举
 * @author linch
 **/
@Getter
public enum OperationType {

    READ("READ", "初始化读取"),
    CREATE("CREATE", "新增"),
    UPDATE("UPDATE", "修改"),
    DELETE("DELETE", "删除");

    private final String value;
    private final String name;

    OperationType(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public boolean eq(String type) {
        return value.equals(type);
    }
}
